package com.xuecheng.api.search;

import com.xuecheng.framework.domain.course.CoursePub;
import com.xuecheng.framework.domain.course.response.TeachplanMediaPub;
import com.xuecheng.framework.domain.search.CourseSearchParam;
import com.xuecheng.framework.model.response.QueryResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import java.util.List;
import java.util.Map;

@Api(description = "提供各种搜索功能")
public interface SearchControllerApi {
    @ApiOperation("提供搜索功能")
    QueryResponseResult searchIndex(Integer page, Integer size, CourseSearchParam courseSearchParam);

    @ApiOperation("查询一个课程所有信息,根据id")
    Map<String, CoursePub> findbyId(String id);

    @ApiOperation("根据课程id查询媒资信息")
    public List<TeachplanMediaPub> findTeachplanMedia(String courseid);
}
